home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ WinNT AliveStamp.xpl < prev    next >
Text File  |  1999-07-08  |  1KB  |  38 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="2"
  3. "COUNT"="1"
  4. "UIPATH"="System\Timeouts"
  5. "NAME"="Last Alive Stamp Interval"
  6. "VERSION"="1.0"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Interval (minutes)"
  9. "DESCRIPTION 1"="UIf Windows NT SP5 is installed, Windows NT will write a "Clean Shutdown" signal to the registry every time it is shutdown normally. If Windows is started and no "Clean Shutdown" signal is found, Windows assumes that a "Dirty Shutdown" has occurred and this is written to the event log (ID: 6008).  If this happens, Windows will add the last alive stamp to this event also."
  10. "DESCRIPTION 2"="The interval how often this last alive stamp is noted can be changed here (minutes). To disable this feature, enter 0 - the default value is 5. "
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  14.  
  15.  
  16. sPath="HKLM\Software\Microsoft\Windows\CurrentVersion\Reliability\TimeStampInterval" 'DW
  17. Sub Plugin_Initialize 
  18.  if GetWinVer=2 then
  19.     i=RegReadValue(sPath)
  20.     SetUIElement 1,i
  21.  else
  22.     Disable
  23.  end if
  24. End Sub
  25.  
  26. Sub Plugin_CheckData(ElementIndex)
  27. End Sub
  28.  
  29. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  30.  i=GetUIElement(1)
  31.  Call RegWriteValue(sPath,i,2)
  32.  
  33.  Call Restart
  34. End Sub
  35.  
  36. Sub Plugin_Terminate 
  37. End Sub
  38.